package com.zxh.blog.service;


import com.zxh.blog.domain.Permission;
import com.zxh.blog.domain.Role;
import com.zxh.blog.domain.User;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface RoleService {
	Role findRoleByUser(User user);

	List<Role> selectByList();

	List<Permission> findPermissionByRoleId(Integer roleId);

	Integer addRole(Role role);

	void updateRole(Role role);

	void deleteByIds(int[] ids);

	Integer insertRolePermission(Integer roleId,Integer permissionId);

	void deletePerByRoleId(int roleId);
}
